package org.byqh.dqeai.entity.proxy;

import com.easy.query.core.expression.parser.core.available.TableAvailable;
import com.easy.query.core.proxy.AbstractProxyEntity;
import com.easy.query.core.proxy.SQLColumn;
import com.easy.query.core.proxy.SQLSelectAsExpression;
import com.easy.query.core.proxy.fetcher.AbstractFetcher;
import com.easy.query.core.proxy.core.EntitySQLContext;
import org.byqh.dqeai.entity.SysActionLog;
import com.easy.query.core.proxy.columns.types.SQLStringTypeColumn;
import com.easy.query.core.proxy.columns.types.SQLLocalDateTimeTypeColumn;

/**
 * this file automatically generated by easy-query, don't modify it
 * 当前文件是easy-query自动生成的请不要随意修改
 * 如果出现属性冲突请使用@ProxyProperty进行重命名
 *
 * @author easy-query
 */
public class SysActionLogProxy extends AbstractProxyEntity<SysActionLogProxy, SysActionLog> {

    private static final Class<SysActionLog> entityClass = SysActionLog.class;

    public static final SysActionLogProxy TABLE = createTable().createEmpty();

    public static SysActionLogProxy createTable() {
        return new SysActionLogProxy();
    }

    public SysActionLogProxy() {
    }

    /**
     * {@link SysActionLog#getActionName}
     */
    public SQLStringTypeColumn<SysActionLogProxy> actionName() {
        return getStringTypeColumn("actionName");
    }

    /**
     * {@link SysActionLog#getActionUser}
     */
    public SQLStringTypeColumn<SysActionLogProxy> actionUser() {
        return getStringTypeColumn("actionUser");
    }

    /**
     * {@link SysActionLog#getActionInfo}
     */
    public SQLStringTypeColumn<SysActionLogProxy> actionInfo() {
        return getStringTypeColumn("actionInfo");
    }

    /**
     * {@link SysActionLog#getCreateDate}
     */
    public SQLLocalDateTimeTypeColumn<SysActionLogProxy> createDate() {
        return getLocalDateTimeTypeColumn("createDate");
    }

    @Override
    public Class<SysActionLog> getEntityClass() {
        return entityClass;
    }

    /**
     * 数据库列的简单获取
     *
     * @return
     */
    public SysActionLogProxyFetcher FETCHER = new SysActionLogProxyFetcher(this, null, SQLSelectAsExpression.empty);

    public static class SysActionLogProxyFetcher extends AbstractFetcher<SysActionLogProxy, SysActionLog, SysActionLogProxyFetcher> {

        public SysActionLogProxyFetcher(SysActionLogProxy proxy, SysActionLogProxyFetcher prev, SQLSelectAsExpression sqlSelectAsExpression) {
            super(proxy, prev, sqlSelectAsExpression);
        }

        /**
         * {@link SysActionLog#getActionName}
         */
        public SysActionLogProxyFetcher actionName() {
            return add(getProxy().actionName());
        }

        /**
         * {@link SysActionLog#getActionUser}
         */
        public SysActionLogProxyFetcher actionUser() {
            return add(getProxy().actionUser());
        }

        /**
         * {@link SysActionLog#getActionInfo}
         */
        public SysActionLogProxyFetcher actionInfo() {
            return add(getProxy().actionInfo());
        }

        /**
         * {@link SysActionLog#getCreateDate}
         */
        public SysActionLogProxyFetcher createDate() {
            return add(getProxy().createDate());
        }

        @Override
        protected SysActionLogProxyFetcher createFetcher(SysActionLogProxy cp, AbstractFetcher<SysActionLogProxy, SysActionLog, SysActionLogProxyFetcher> prev, SQLSelectAsExpression sqlSelectExpression) {
            return new SysActionLogProxyFetcher(cp, this, sqlSelectExpression);
        }
    }
}
